#pragma once


// CIndicator
class CSKEYBid;
class CIndicator : public CStatic
{
	DECLARE_DYNAMIC(CIndicator)

public:
	CIndicator();
	~CIndicator() override;

protected:
	DECLARE_MESSAGE_MAP()
	intptr_t x, y, w, h, xs, xe, ys, ye;
	CBrush redBrush;
	CSKEYBid *m_pParent;
	bool m_indShown;
public:
	BOOL Create(LPCTSTR lpszText, DWORD dwStyle, CSKEYBid* pParentWnd, UINT nID = 0xffff);
	afx_msg void OnPaint();
	bool SetPosition();
	__forceinline bool isShown(){ return m_indShown; }
	__forceinline void show(bool v) { m_indShown = v; ShowWindow(m_indShown ? SW_SHOW : SW_HIDE); }
	__forceinline void SetPositionIfShown() { if (GetSafeHwnd() && m_indShown) SetPosition(); }
};


